package deletepackage;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public class Deletepro extends Delete{
	public void deleteDB(int proNO){
        Connection conn = null;
        PreparedStatement pstmt = null;
        
        try {
            conn = getConnection();
            
            pstmt = conn.prepareStatement("delete from PROJECT where proNO=?");
            pstmt.setInt(1, proNO);
            
            pstmt.executeUpdate();
        } catch(SQLException ex) {
            //throw new ProjectManagerException("deleteProject", ex);
        } finally {
            if (pstmt != null) try { pstmt.close(); } catch(SQLException ex) {}
            if (conn != null) try { conn.close(); } catch(SQLException ex) {}
        }
    }
}